<template>
  <div class="group-add-friend-main">
    <div class="group-add-friend-head">
      <div class="head-title">
        加群好友
      </div>
    </div>
    <div class="group-add-friend-container">
      <div class="card-main">
        <div class="emptybox">
          <img class="empty-cover" src="@/assets/images/pic_group_add_firend.png" />
          <div class="empty-info">
            <div>加群好友功能请至单号模式下使用</div>
            <div>
              <el-checkbox>
                <span style="color: rgba(0,0,0,.65);">下次打开，直接跳转至加群好友，不再提示</span>
              </el-checkbox>
            </div>
            <div><el-button type="primary" @click="goPage('/single/add-group-friend')">去使用</el-button></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data(){
    return{}
  },
  methods:{
    goPage(path){
      this.$router.push({path})
    }
  }
}
</script>
<style lang="scss" scoped>
.group-add-friend-main {
  overflow: auto;
  flex: 1 1;
  position: relative;
  .group-add-friend-head {
    height: 46px;
    background: #fff;
    border-bottom: 1px solid #e9e9e9;
    position: sticky;
    top: 0;
    z-index: 8;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 20px;
    .head-title {
      font-size: 14px;
      line-height: 22px;
      font-weight: 600;
      .example-text {
        color: #2f54eb;
        cursor: pointer;
        margin-left: 8px;;
        font-weight: 400;
        &:hover + .example-modal {
          display: block;
        }
      }
    }
  }
  .group-add-friend-container {
    padding: 12px;
    height: calc(100vh - 48px);
    width: 100%;
    font-size: 14px;
    line-height: 22px;
    .card-main {
      background-color: #fff;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 14px;
      line-height: 22px;
      width: 100%;
      height: 100%;
      .emptybox {
        display: flex;
        align-items: center;
        .empty-cover {
          width: 100px;
          height: 100px;
        }
        .empty-info {
          display: flex;
          flex-direction: column;
          margin-left: 20px;
          div {
            margin: 5px 0;
          }
        }
      }
    }
  }
}
</style>
